#pragma once

#include "LogFile.h"
#include "TimeUtility.h"

using namespace std;

class ErrorUtility
{
public:
	static ErrorUtility& Instance();

	void LogToFile(bool flag=true);
	void Info(const string& message);
	void Warning(const string& message);
	void Error(const string& message);

private:
	//prevent public creation/assignment/copying
	ErrorUtility();
	~ErrorUtility();
	ErrorUtility(const ErrorUtility& source);
	ErrorUtility& operator=(const ErrorUtility& rhs);
	
	void Log(const string& message,const string& errorLevel="");

	bool bLogToFile;
};